cr.setDash([1, 3], 1); // Hard-code for now
cr.setLineWidth(stippleWidth);
cr.stroke();
+ cr.$dispose();
};
const DateMenuButton = new Lang.Class({
let backgroundColor = node.get_color('-panel-corner-background-color');
let borderColor = node.get_color('-panel-corner-border-color');
- let noOverlap = borderColor.alpha == 0;
- let offsetY = noOverlap ? borderWidth : 0;
+ let overlap = borderColor.alpha != 0;
+ let offsetY = overlap ? 0 : borderWidth;
let cr = this.actor.get_context();
cr.setOperator(Cairo.Operator.SOURCE);
Clutter.cairo_set_source_color(cr, over);
cr.fill();
- if (noOverlap)
- return;
+ if (overlap) {
+ let offset = borderWidth;
+ Clutter.cairo_set_source_color(cr, backgroundColor);
- let offset = borderWidth;
- Clutter.cairo_set_source_color(cr, backgroundColor);
+ cr.save();
+ cr.translate(xOffsetDirection * offset, - offset);
+ cr.appendPath(savedPath);
+ cr.fill();
+ cr.restore();
+ }
- cr.save();
- cr.translate(xOffsetDirection * offset, - offset);
- cr.appendPath(savedPath);
- cr.fill();
- cr.restore();
+ cr.$dispose();
},
_styleChanged: function() {
color.alpha / 255);
cr.arc(width / 2, height / 2, width / 3, 0, 2 * Math.PI);
cr.fill();
+ cr.$dispose();
},
// This returns column widths in logical order (i.e. from the dot
color.alpha / 255);
cr.arc(handleX, handleY, handleRadius, 0, 2 * Math.PI);
cr.fill();
+ cr.$dispose();
},
_startDragging: function(actor, event) {